package com.shengqi.xinnongren.work.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class HttpRespond<T> implements Serializable {

    @SerializedName("result")
    public int result;
    @SerializedName("isaes")
    public int isaes;
    @SerializedName("message")
    public String message;
    @SerializedName("data")
    public T data;

    public HttpRespond() {
    }

    public HttpRespond(int result, String message) {
        this.result = result;
        this.message = message;
    }

    @Override
    public String toString() {
        return "HttpRespond{" +
                "result=" + result +
                ", isaes=" + isaes +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
